<!DOCTYPE html>
<html>

	<head>
		<title>班级网站</title>
		<meta charset="UTF-8">
		<script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
		<script type="text/javascript" src="bootstrap-3.3.7-dist/js/bootstrap.js"></script>
		<link rel="stylesheet" href="bootstrap-3.3.7-dist/css/bootstrap.css" />
		<link rel="stylesheet" href="css/base.css" />
		<script src="https://cdn.staticfile.org/vue/2.4.2/vue.min.js"></script>
		<script src="https://cdn.staticfile.org/axios/0.18.0/axios.min.js"></script>
	</head>

	<body style="background-color: rgb(239, 239, 239);">
	<div id="app">
		<header>
			<div style="width: 1000px; margin: auto;">
				<nav class="navbar navbar-inverse navbar-fixed-top">
					<div id="navbar" class="container">
						<div class="row">
							<div class="col-md-offset-4 col-md-5">
								<ul class="nav navbar-nav ">
									<li role="presentation"><a href="index.html">首页</a></li>
									<li role="presentation"><a href="classNews.html?page=classnews">班级新闻</a>
									</li>
									<li role="presentation"><a href="album.html">班级相册</a></li>
									<li role="presentation"><a href="classMembers.html">班级成员</a>
									</li>
								</ul>
							</div>
							<div class="col-md-3" id="user_box">
								<a href="personalCenter.html">个人中心</a>
							</div>
						</div>

					</div>
				</nav>
			</div>
		</header>
							<a v-for="(item,index) in list.announce" v-if="index < 5">
								<li><span>[12/4]</span>{{item.atitle}}</li>
							</a>
		<div class="container" style="margin-top:60px;">
			<div class="row">
				<div class="col-sm-12 col-md-12" style="background-color: #FFFFFF;height:800px;">
					<div id="SongSheet">
						<div class="row">
							<div class="col-md-9">
								<h2>班级相册</h2>
							</div>
						</div>
						<hr />
						<div class="row">
							<div class="col-sm-3 col-md-2" v-for="(item,index) in list.album">
									<div class="thumbnail">
										<img :src="item.imageURL" :title="item.abName" width="100%">
									</div>
							</div>
							
							
						</div>
						
					</div>
					<br>

				</div>

			</div>
		</div>
		<br />
		<footer class="jumbotron text-center" style="margin-bottom:0;background-color: #333333; position: relative;">
			<div style="color: white;">
				版权所有 &nbsp; &copy; 网络1714-小组7
			</div>
			
		</footer>
	</div>
		<script type="text/javascript">
			new Vue({
				el: '#app',
				data() {
					return {
						list:[],
					}
				},
				mounted() {
					axios.get('../AlbumServlet')
						.then(response => (
								this.list=response.data
								))
						.catch(function(error) { // 请求失败处理
							console.log(error);
						});
				}
			
			})
		</script>
	</body>

</html>